package cn.wgx.modules.sys.entity;

import cn.wgx.modules.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;

/**
 * Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
 * Description:
 * 
 *
 * @author 
 */
public class SysFeedback extends BaseEntity implements Serializable {
    /**
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Integer feedback_id;

    /**
     * 父ID(备用)
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Integer pid;

    /**
     * 反馈标题
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String title;

    /**
     * 反馈内容
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String content;

    /**
     * 附件
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String file;

    /**
     * 答复内容
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String answer;

    /**
     * 类型(1.操作类 2.业务类),备用字段
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Integer type;

    /**
     * 答复人名称
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String answer_username;

    /**
     * 提问人名称
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private String create_username;

    /**
     * 是否已读
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Boolean hasRead;

    /**
     * 创建人ID
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Integer createUserId;

    /**
     * 创建时间
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Date createDate;

    /**
     * 更新时间
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Integer updateUserId;

    /**
     * 更新人
     *
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private Date updateDate;

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method returns the value of the database column education..sys_feedback.feedback_id
     *
     * @return the value of education..sys_feedback.feedback_id
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Integer getFeedback_id() {
        return feedback_id;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withFeedback_id(Integer feedback_id) {
        this.setFeedback_id(feedback_id);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.feedback_id
     *
     * @param feedback_id the value for education..sys_feedback.feedback_id
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setFeedback_id(Integer feedback_id) {
        this.feedback_id = feedback_id;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.pid
     *
     * @return the value of education..sys_feedback.pid
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Integer getPid() {
        return pid;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withPid(Integer pid) {
        this.setPid(pid);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.pid
     *
     * @param pid the value for education..sys_feedback.pid
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.title
     *
     * @return the value of education..sys_feedback.title
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getTitle() {
        return title;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.title
     *
     * @param title the value for education..sys_feedback.title
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.content
     *
     * @return the value of education..sys_feedback.content
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getContent() {
        return content;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withContent(String content) {
        this.setContent(content);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.content
     *
     * @param content the value for education..sys_feedback.content
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.file
     *
     * @return the value of education..sys_feedback.file
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getFile() {
        return file;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withFile(String file) {
        this.setFile(file);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.file
     *
     * @param file the value for education..sys_feedback.file
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setFile(String file) {
        this.file = file;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.answer
     *
     * @return the value of education..sys_feedback.answer
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getAnswer() {
        return answer;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withAnswer(String answer) {
        this.setAnswer(answer);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.answer
     *
     * @param answer the value for education..sys_feedback.answer
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setAnswer(String answer) {
        this.answer = answer;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.type
     *
     * @return the value of education..sys_feedback.type
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Integer getType() {
        return type;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withType(Integer type) {
        this.setType(type);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.type
     *
     * @param type the value for education..sys_feedback.type
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.answer_username
     *
     * @return the value of education..sys_feedback.answer_username
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getAnswer_username() {
        return answer_username;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withAnswer_username(String answer_username) {
        this.setAnswer_username(answer_username);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.answer_username
     *
     * @param answer_username the value for education..sys_feedback.answer_username
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setAnswer_username(String answer_username) {
        this.answer_username = answer_username;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.create_username
     *
     * @return the value of education..sys_feedback.create_username
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public String getCreate_username() {
        return create_username;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withCreate_username(String create_username) {
        this.setCreate_username(create_username);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.create_username
     *
     * @param create_username the value for education..sys_feedback.create_username
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setCreate_username(String create_username) {
        this.create_username = create_username;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.hasRead
     *
     * @return the value of education..sys_feedback.hasRead
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Boolean getHasRead() {
        return hasRead;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withHasRead(Boolean hasRead) {
        this.setHasRead(hasRead);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.hasRead
     *
     * @param hasRead the value for education..sys_feedback.hasRead
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setHasRead(Boolean hasRead) {
        this.hasRead = hasRead;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.createUserId
     *
     * @return the value of education..sys_feedback.createUserId
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withCreateUserId(Integer createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.createUserId
     *
     * @param createUserId the value for education..sys_feedback.createUserId
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.createDate
     *
     * @return the value of education..sys_feedback.createDate
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withCreateDate(Date createDate) {
        this.setCreateDate(createDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.createDate
     *
     * @param createDate the value for education..sys_feedback.createDate
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.updateUserId
     *
     * @return the value of education..sys_feedback.updateUserId
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withUpdateUserId(Integer updateUserId) {
        this.setUpdateUserId(updateUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.updateUserId
     *
     * @param updateUserId the value for education..sys_feedback.updateUserId
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    /**
     * This method returns the value of the database column education..sys_feedback.updateDate
     *
     * @return the value of education..sys_feedback.updateDate
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public SysFeedback withUpdateDate(Date updateDate) {
        this.setUpdateDate(updateDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_feedback.updateDate
     *
     * @param updateDate the value for education..sys_feedback.updateDate
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", feedback_id=").append(feedback_id);
        sb.append(", pid=").append(pid);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", file=").append(file);
        sb.append(", answer=").append(answer);
        sb.append(", type=").append(type);
        sb.append(", answer_username=").append(answer_username);
        sb.append(", create_username=").append(create_username);
        sb.append(", hasRead=").append(hasRead);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysFeedback other = (SysFeedback) that;
        return (this.getFeedback_id() == null ? other.getFeedback_id() == null : this.getFeedback_id().equals(other.getFeedback_id()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getFile() == null ? other.getFile() == null : this.getFile().equals(other.getFile()))
            && (this.getAnswer() == null ? other.getAnswer() == null : this.getAnswer().equals(other.getAnswer()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getAnswer_username() == null ? other.getAnswer_username() == null : this.getAnswer_username().equals(other.getAnswer_username()))
            && (this.getCreate_username() == null ? other.getCreate_username() == null : this.getCreate_username().equals(other.getCreate_username()))
            && (this.getHasRead() == null ? other.getHasRead() == null : this.getHasRead().equals(other.getHasRead()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFeedback_id() == null) ? 0 : getFeedback_id().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getFile() == null) ? 0 : getFile().hashCode());
        result = prime * result + ((getAnswer() == null) ? 0 : getAnswer().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAnswer_username() == null) ? 0 : getAnswer_username().hashCode());
        result = prime * result + ((getCreate_username() == null) ? 0 : getCreate_username().hashCode());
        result = prime * result + ((getHasRead() == null) ? 0 : getHasRead().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated Sat Jun 20 18:34:37 CST 2020
     */
    public enum Column {
        feedback_id("feedback_id", "feedback_id", "INTEGER", false),
        pid("pid", "pid", "INTEGER", false),
        title("title", "title", "VARCHAR", false),
        content("content", "content", "VARCHAR", false),
        file("file", "file", "VARCHAR", false),
        answer("answer", "answer", "VARCHAR", false),
        type("type", "type", "INTEGER", false),
        answer_username("answer_username", "answer_username", "VARCHAR", false),
        create_username("create_username", "create_username", "VARCHAR", false),
        hasRead("hasRead", "hasRead", "BIT", false),
        createUserId("createUserId", "createUserId", "INTEGER", false),
        createDate("createDate", "createDate", "TIMESTAMP", false),
        updateUserId("updateUserId", "updateUserId", "INTEGER", false),
        updateDate("updateDate", "updateDate", "TIMESTAMP", false);

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private static final String BEGINNING_DELIMITER = "\"";

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private static final String ENDING_DELIMITER = "\"";

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private final String column;

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private final boolean isColumnNameDelimited;

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private final String javaProperty;

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        private final String jdbcType;

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String value() {
            return this.column;
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String getValue() {
            return this.column;
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         *
         * @mbg.generated Sat Jun 20 18:34:37 CST 2020
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }
    }
}